package com.bjc.article.dao;

import com.bjc.article.po.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @program: maongo_article
 * @description: Dao
 * @author: bjc
 * @create: 2021-11-02 21:44
 */
public interface CommentRepository extends MongoRepository<Comment, String> {

    Page<Comment> findByParentid(String parentid, Pageable pageable);
}
